using System;
using System.ComponentModel;
using System.Collections.Generic;

/// <summary>
/// Business entity class generated from Supplier
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-22]
/// </remarks>
namespace TVN.ShopMan.Entities
{
	public partial class SupplierEntity
	{
		#region Properties
		
		public partial class Properties
		{
			public const string Id = "Id";
			public const string Name = "Name";
			public const string Address = "Address";
			public const string IsActive = "IsActive";
			public const string CreatedDate = "CreatedDate";
			public const string LastModifiedDate = "LastModifiedDate";
			public const string CreatedBy = "CreatedBy";
			public const string LastModifiedBy = "LastModifiedBy";
		}

		#endregion

		#region Private fields

		private long _id;
		private string _name;
		private string _address;
		private bool _isActive;
		private DateTime _createdDate;
		private DateTime? _lastModifiedDate;
		private AccountEntity _createdBy;
		private AccountEntity _lastModifiedBy;

		private IList<ProductEntity> _productsSupplierId = new List<ProductEntity>();
		private IList<SupplierContactPointEntity> _supplierContactPointsSupplierId = new List<SupplierContactPointEntity>();

		#endregion

		#region Constructors

		public SupplierEntity()
		{
		}

		#endregion

		#region Properties

		public long Id
		{
			get { return _id; }
		}

		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}

		public string Address
		{
			get { return _address; }
			set { _address = value; }
		}

		public bool IsActive
		{
			get { return _isActive; }
			set { _isActive = value; }
		}

		public DateTime CreatedDate
		{
			get { return _createdDate; }
			set { _createdDate = value; }
		}

		public DateTime? LastModifiedDate
		{
			get { return _lastModifiedDate; }
			set { _lastModifiedDate = value; }
		}

		public AccountEntity CreatedBy
		{
			get { return _createdBy; }
			set { _createdBy = value; }
		}

		public AccountEntity LastModifiedBy
		{
			get { return _lastModifiedBy; }
			set { _lastModifiedBy = value; }
		}

		public IList<ProductEntity> ProductsSupplierId
		{
			get { return _productsSupplierId; }
			set { _productsSupplierId = value; }
		}
		public IList<SupplierContactPointEntity> SupplierContactPointsSupplierId
		{
			get { return _supplierContactPointsSupplierId; }
			set { _supplierContactPointsSupplierId = value; }
		}
		#endregion

	} }

